package io_homework;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

public class FIS1 {
    public static void main(String[] args) throws IOException {
        FileInputStream fis = new FileInputStream("fos.dat");
        int d= fis.read();
        System.out.println(d);
        d = fis.read();
        System.out.println(d);
        d= fis.read();
        System.out.println(d);
        d= fis.read();
        System.out.println(d);
        d= fis.read();
        System.out.println(d);
        d= fis.read();//末尾
        System.out.println(d);
        fis.close();
    }
}
